import request from '@/utils/request'

// 查询店铺店员配置列表
export function listConfigEmployee(data) {
  return request({
    url: '/market/configEmployee/configEmployeeList',
    method: 'post',
    data: data
  })
}

// 查询店铺店员配置详细
export function getConfigEmployee(data) {
  return request({
    url: '/market/configEmployee/getConfigEmployee',
    method: 'post',
    data: data
  })
}

// 新增店铺店员配置
export function addConfigEmployee(data) {
  return request({
    url: '/market/configEmployee',
    method: 'post',
    data: data
  })
}

// 保存店铺店员配置
export function saveConfigEmployee(data) {
  return request({
    url: '/market/configEmployee/save',
    method: 'post',
    data: data
  })
}

// 修改店铺店员配置
export function updateConfigEmployee(data) {
  return request({
    url: '/market/configEmployee',
    method: 'put',
    data: data
  })
}

// 删除店铺店员配置
export function delConfigEmployee(configEmployeeId) {
  return request({
    url: '/market/configEmployee/' + configEmployeeId,
    method: 'delete'
  })
}

